#pragma once
#include <thread>
#include <iostream>
#include <map>
#include "MyData.h"
#include "MyConnPool.h"

/*

extern "C"
{
#include "unp.h"
}
*/


class MySocketServer
{
public:
	MySocketServer();
	~MySocketServer();

	void Init();
	static std::vector<std::string> devNameList;

	static void* listenWork(void*);
	static void* msgWorker(void*);
	static void* checkWorker(void*);
	static void* saveWorker(void*);

	pthread_t pthListen;
	pthread_t pthMsg;
	pthread_t pthCheck;
	pthread_t pthSave;
	static MyConnPool m_cp;
};

